<?php
JLoader::register("PCalendarModellistview", OC_App::getAppPath('calendar') . "/lib/listview.php");

$LoginStats = PUtil::checkUserLogin(true);
if ($LoginStats !== true) {
   echo $LoginStats;
   exit();
}

OCP\JSON::callCheck();

$model = new PCalendarModellistview();

list($interviewlist, $intevpagination) = $model->getTodayEventlist();
$tmpl = new OCP\Template('calendar', 'part.interviews.list', '');
$tmpl->assign('interviewlist', $interviewlist);
$tmpl->assign('intevpagination', $intevpagination);
$tmpl->printpage();